package com.example.demo.design.singleton;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 10:18 2021/4/9
 * @Modified By:
 */
public class Singleton {
    private Singleton() {
    }

    private static class SingletonHolder {
        private final static Singleton INSTANCE = new Singleton();
    }

    public static Singleton getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
